package com.turnengine.client.local.action.command.gwt;

import com.google.common.annotations.GwtCompatible;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.javabi.codebuilder.generated.gwt.IGeneratedRemoteService;
import com.javabi.command.errorcode.gwt.GwtErrorCodeException;
import com.turnengine.client.local.action.bean.IActionTarget;
import com.turnengine.client.local.action.enums.ActionTargetType;
import com.turnengine.client.local.unit.enums.UnitRelation;
import com.turnengine.client.local.unit.enums.UnitType;

/**
 * The Add Action Target Service.
 */
@GwtCompatible
@RemoteServiceRelativePath("AddActionTargetService")
public interface AddActionTargetService extends RemoteService, IGeneratedRemoteService {

	IActionTarget addActionTarget(long loginId, int instanceId, int actionId, ActionTargetType target, UnitType type, UnitRelation relation) throws GwtErrorCodeException;
}
